package com.blb.ssm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
	
	List<Map<String, Object>> getlist(@Param("ostate")String ostate, @Param("otype")String otype, @Param("start")int start,@Param("limit")int limit);

	int getCount(@Param("ostate")String ostate, @Param("otype")String otype);

	@Delete("delete from orders where oid=#{oid} and ostate=#{ostate}  and otype=#{otype}")
	void getDeleteOrder(@Param("oid")String oid, @Param("ostate")String ostate, @Param("otype")String otype);
	
	@Delete("delete from order_goods where oid=#{oid}")
	void getDeleteOrderGoods(String oid);

	List<Map<String, Object>> getOnelist(@Param("ostate")String ostate, @Param("otype")String otype, @Param("oid")String oid);

}
